from celery import Celery

app = Celery('zxj_result', broker='redis://:@127.0.0.1:6379/1', backend='redis://@127.0.0.1:6379/1')  # redis没密码


@app.task
def task_tesk(a, b):
    print("task is running...")
    return a + b
